﻿<navigation:Page xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"  x:Class="GranitePackageSystem.Views.Licensing.LicensingApprovalView" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           xmlns:layoutToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Layout.Toolkit"
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"
           xmlns:customControl="clr-namespace:GranitePackageSystem.Controls"
           d:DesignWidth="1024" d:DesignHeight="2048" MaxWidth="1024"
           Title="LicensingApprovalView Page">
    <Grid x:Name="LayoutRoot">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
            <RowDefinition Height="333*" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="250" />
            <ColumnDefinition Width="550*" />
        </Grid.ColumnDefinitions>
        <StackPanel Grid.Row="0" Grid.ColumnSpan="2" Margin="10" Name="panelTitle">
            <TextBlock Text="Licensing Approval View" FontSize="18" FontWeight="Bold" HorizontalAlignment="Center" />
        </StackPanel>
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top" Width="200" HorizontalAlignment="Center">
            <StackPanel>
                <HyperlinkButton x:Name="linkHome" NavigateUri="/Home" TargetName="ContentFrame" Content="Dashboard" Style="{StaticResource LinkStyle}" Background="{x:Null}" AllowDrop="True" HorizontalContentAlignment="Left" Margin="16,0,0,0"/>
                <controlsToolkit:Expander ExpandDirection="Down" IsExpanded="True">
                    <controlsToolkit:Expander.Header>
                        <TextBlock Text="Current Request" FontSize="12" Foreground="White" TextAlignment="Left" />
                    </controlsToolkit:Expander.Header>
                    <controlsToolkit:Expander.Content>
                        <StackPanel HorizontalAlignment="Right" Margin="30,0,0,0" Width="AUTO">
                            <HyperlinkButton x:Name="linkLicensing" NavigateUri="/Licensing/LicensingApprovalView" TargetName="ContentFrame" Content="• Licensing Approval" Margin="0,0,5,0" Style="{StaticResource LinkStyle}" HorizontalContentAlignment="Left" Foreground="#FF42A1F5"  />
                        </StackPanel>
                    </controlsToolkit:Expander.Content>
                </controlsToolkit:Expander>
            </StackPanel>
        </StackPanel>
        <controlsToolkit:BusyIndicator Name="busyIndicatorMain" Grid.Column="1" Grid.Row="1">
            <StackPanel Name="panelContent">
                <StackPanel Name="panelPackageInformationHeader" Margin="10" Orientation="Horizontal" HorizontalAlignment="Center">
                    <TextBlock Text="Package Data" VerticalAlignment="Center" FontSize="14" FontWeight="Bold" />
                </StackPanel>
                <StackPanel Name="panelPackageInformation" Orientation="Horizontal">
                    <StackPanel Width="200">
                        <TextBlock Text="Software Name:  "  Height="20" Margin="2,5,2,2" />
                        <TextBlock Text="Software Publisher:  " Height="20" Margin="2,5,2,2" />
                        <TextBlock Text="Software Version:  "  Height="20" Margin="2,5,2,2" />
                        <TextBlock Text="Comments:  " Height="20" Margin="2,5,2,2" />
                        <TextBlock Text="AD Group Name:" Height="20" Margin="2,6,2,2" />
                        <TextBlock Text="AD Group Description:" Height="20" Margin="2,6,2,2" />
                        <TextBlock Text="AD Group Notes:" Height="20" Margin="2,6,2,2" />
                        <TextBlock Text="AD Group Owner:" Height="20" Margin="2,6,2,2" />
                        <TextBlock Text="AD Group Destination OU:" Height="20" Margin="2,5,2,2" />
                        <TextBlock Text="Work Log:" Height="20" Margin="2,15,2,2" />
                    </StackPanel>
                    <StackPanel Width="560" Name="panelPackageInfoDetails">
                        <TextBox Name="boxPackageName" Text="{Binding Name}" Height="23" Margin="2" IsEnabled="False" Width="400" HorizontalAlignment="Left"/>
                        <TextBox Name="boxPackagePublisher" Text="{Binding Publisher}" Height="23" Margin="2" IsEnabled="False" Width="400" HorizontalAlignment="Left" />
                        <TextBox Name="boxPackageVersion" Text="{Binding Version}" Height="23" Margin="2" IsEnabled="False" Width="400" HorizontalAlignment="Left" />
                        <TextBox Name="boxPackageComments" Text="{Binding Comment}" Height="23" Margin="2" IsEnabled="False" Width="400" HorizontalAlignment="Left" />
                        <StackPanel Orientation="Horizontal" Margin="2" Name="panelGroupName">
                            <TextBox x:Name="boxADGroupName" Text="{Binding GroupName, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" Width="400" HorizontalAlignment="Left" BindingValidationError="boxGroupName_BindingValidationError" TextChanged="boxADGroupName_TextChanged" />
                            <dataInput:DescriptionViewer Margin="4" Target="{Binding ElementName=boxADGroupName}" BindingValidationError="boxGroupName_BindingValidationError"/>
                            <customControl:Spinner Visibility="Collapsed" x:Name="spinnerGroupName" Height="23" />
                            <TextBlock Name="boxADGroupNameNeworExisting" Visibility="Collapsed" Height="20" Margin="0,3,0,0" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="2" Name="panelGroupDescription">
                            <TextBox x:Name="boxADGroupDescription" Text="{Binding GroupDescription, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" Width="400" HorizontalAlignment="Left" BindingValidationError="boxADGroupDescription_BindingValidationError" />
                            <dataInput:DescriptionViewer Margin="4" Target="{Binding ElementName=boxADGroupDescription}" BindingValidationError="boxADGroupDescription_BindingValidationError"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="2" Name="panelGroupNotes">
                            <TextBox x:Name="boxADGroupNotes" Text="{Binding GroupNotes, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" Width="400" HorizontalAlignment="Left" BindingValidationError="boxADGroupNotes_BindingValidationError" />
                            <dataInput:DescriptionViewer Margin="4" Target="{Binding ElementName=boxADGroupNotes}" BindingValidationError="boxADGroupNotes_BindingValidationError"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="2" Name="panelADGroupOwner">
                            <TextBox x:Name="boxADGroupOwner" Text="{Binding GroupOwner, Mode=TwoWay, ValidatesOnExceptions=True, ValidatesOnDataErrors=True, NotifyOnValidationError=True}" Width="400" HorizontalAlignment="Left" BindingValidationError="boxADGroupNotes_BindingValidationError" TextChanged="boxADGroupOwner_TextChanged" />
                            <dataInput:DescriptionViewer Margin="4" Target="{Binding ElementName=boxADGroupOwner}" BindingValidationError="boxADGroupOwner_BindingValidationError"/>
                            <customControl:Spinner Visibility="Collapsed" x:Name="spinnerGroupOwner" Height="23" />
                            <TextBlock Name="boxADGroupOwnerValid" Visibility="Collapsed" Height="20" Margin="0,3,0,0" />
                        </StackPanel>
                        <StackPanel Orientation="Horizontal" Margin="2" Name="panelGroupDestinationOU">
                            <ComboBox x:Name="boxADGroupDestinationOU" Width="400" ItemsSource="{Binding}" SelectionChanged="boxADGroupDestinationOU_SelectionChanged">
                            </ComboBox>
                        </StackPanel>
                        <sdk:DataGrid Name="gridWorkLog" Height="120" Width="550" HorizontalAlignment="Left" Margin="2,10,2,2" AutoGenerateColumns="False" MouseLeftButtonUp="gridWorkLog_MouseLeftButtonUp">
                            <sdk:DataGrid.Columns>
                                <sdk:DataGridTextColumn Binding="{Binding UserName}" Header="User Name" IsReadOnly="True" Width="1*" />
                                <sdk:DataGridTextColumn Binding="{Binding NoteDate}" Header="Date" IsReadOnly="True" Width="1*" />
                                <sdk:DataGridTextColumn Binding="{Binding displayLine}" Header="Note" IsReadOnly="True" Width="2*" />
                            </sdk:DataGrid.Columns>
                        </sdk:DataGrid>
                        <Button Name="btnAddWorklogEntry" Content="Add Worklog Entry" HorizontalAlignment="Left" Margin="422,2,2,2" Width="130" Click="btnAddWorklogEntry_Click" />
                    </StackPanel>
                </StackPanel>
                <StackPanel Name="panelLicensingContent">
                    <StackPanel Name="panelLicenseEdit" Margin="10" Orientation="Horizontal" HorizontalAlignment="Center" Visibility="Visible">
                        <TextBlock Text="Saved Licensing Data" VerticalAlignment="Center" />
                        <Button Name="btnEditLicensingData" Content="Edit License Data" HorizontalAlignment="Right" Margin="10,0,0,0" Click="btnEditLicensingData_Click" />
                    </StackPanel>
                    <StackPanel Name="panelLicenseHeader" Margin="10" Orientation="Horizontal" HorizontalAlignment="Center">
                        <TextBlock Text="Licensing Data" VerticalAlignment="Center" FontSize="14"  FontWeight="Bold" />
                    </StackPanel>
                    <StackPanel Name="panelMainSoftwareOrigin">
                        <StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="10">
                            <TextBlock Text="Software Origin:" Width="180" />
                            <Button Name="btnHelpSoftwareOrigin" Content="?" Height="20" Margin="0,0,20,0" />
                            <ComboBox SelectedIndex="0" Name="boxSoftwareOrigin" Width="220" SelectionChanged="boxSoftwareOrigin_SelectionChanged">
                                <ComboBoxItem Content="Not General Mills Developed" />
                                <ComboBoxItem Content="General Mills Developed" />
                            </ComboBox>
                        </StackPanel>
                        <StackPanel Name="panelSubSoftwareOrigin">
                            <StackPanel Orientation="Horizontal" Name="panelRequestSource" Margin="10,0,0,10">
                                <TextBlock Text="Request Source" Width="180" VerticalAlignment="Center" />
                                <Button Name="btnRequestSourceHelp" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                <ComboBox Name="boxRequestSource" SelectedIndex="0" Width="220" SelectionChanged="boxRequestSource_SelectionChanged">
                                    <ComboBoxItem Content="Windows 7 Upgrade Project" />
                                    <ComboBoxItem Content="New Software" />
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="panelProcurementMethod" Margin="10,0,0,10">
                                <TextBlock Text="Software Procurement Method" Width="180" VerticalAlignment="Center" />
                                <Button Name="btnHelpSoftwareProcurementMethod" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                <ComboBox Name="boxSoftwareProcurementMethod" SelectedIndex="0" Width="220" SelectionChanged="boxSoftwareProcurementMethod_SelectionChanged">
                                    <ComboBoxItem Content="SAP SRM Request" />
                                    <ComboBoxItem Content="Maximo Request" />
                                    <ComboBoxItem Content="IS Sourcing PCard" />
                                    <ComboBoxItem Content="Corporate Credit Card" />
                                    <ComboBoxItem Content="Personal Credit Card" />
                                    <ComboBoxItem Content="No Cost" />
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="panelSoftwareCost" Margin="10,0,0,10">
                                <TextBlock Text="Software Cost" Width="180" VerticalAlignment="Center" />
                                <Button Name="btnHelpSoftwareCost" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                <ComboBox Name="boxSoftwareCost" Width="220" SelectedIndex="1">
                                    <ComboBoxItem Content="0-$1,000" />
                                    <ComboBoxItem Content="1,000-$10,000" />
                                    <ComboBoxItem Content="$10,000+" />
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Name="panelPONumber" Margin="10,0,0,10">
                                <TextBlock Text="PO Number" Width="180" VerticalAlignment="Center" />
                                <Button Name="btnHelpPONumber" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                <TextBox Name="boxPONumber" Width="220" />
                            </StackPanel>
                            <StackPanel Orientation="Horizontal" Margin="10,0,0,10" Height="25">
                                <TextBlock Text="Is this Software Contracted" VerticalAlignment="Center" Width="180" />
                                <Button Name="btnHelpSoftwareContracted" Content="?" Height="20" />
                                <StackPanel Name="panelButtonBar_SoftwareContracted" Orientation="Horizontal" Margin="20,0,0,0">
                                    <Border BorderBrush="DarkGray" Name="btnSoftwareContracted_YES" BorderThickness="1.5" MouseLeftButtonDown="btnSoftwareContracted_YES_MouseLeftButtonDown">
                                        <TextBlock Text="Yes" Width="50" TextAlignment="Center" VerticalAlignment="Center" />
                                    </Border>
                                    <Border BorderBrush="DarkGray" Name="btnSoftwareContracted_NO" BorderThickness="1.5" Background="#FF95BCF2" MouseLeftButtonDown="btnSoftwareContracted_NO_MouseLeftButtonDown">
                                        <TextBlock Text="No"  Width="50" TextAlignment="Center" VerticalAlignment="Center" />
                                    </Border>
                                </StackPanel>
                            </StackPanel>
                            <StackPanel Name="panelSoftwareEULA" Orientation="Horizontal" Margin="10,0,10,0">
                                <TextBlock Text="Software EULA" Width="180" VerticalAlignment="Top" />
                                <Button Name="btnHelpSoftwareEULA" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Top" />
                                <RichTextBox Name="boxSoftwareEULA" Height="300" Width="540" />
                            </StackPanel>
                            <StackPanel Name="panelLicenseKey" Orientation="Horizontal" Margin="10">
                                <TextBlock Text="License Key(s)" Width="180" VerticalAlignment="Center" />
                                <Button Name="btnHelpLicenseKeys" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                <ComboBox Name="boxLicenseKeyChoice" SelectedIndex="2" Width="220" SelectionChanged="boxLicenseKeyChoice_SelectionChanged">
                                    <ComboBoxItem Content="Group License Key" />
                                    <ComboBoxItem Content="Unique Individual License Key(s)" />
                                    <ComboBoxItem Content="No License Key" />
                                </ComboBox>
                            </StackPanel>
                            <StackPanel Name="panelLicenseKeyUploader" Orientation="Vertical" Margin="80,10,10,10" Width="400" Visibility="Collapsed">
                                <ListBox Name="listBoxLicenseKeys" Height="200" Width="400" />
                                <StackPanel HorizontalAlignment="Right" Orientation="Horizontal">
                                    <Button Name="btnRemoveLicenseKey" Content="Remove Key" HorizontalAlignment="Right" Margin="5" Click="btnRemoveLicenseKey_Click" />
                                    <Button Name="btnAddLicenseKey" Content="Add License Key" HorizontalAlignment="Right" Margin="5" Click="btnAddLicenseKey_Click" />
                                </StackPanel>
                            </StackPanel>
                        </StackPanel>
                        <controlsToolkit:BusyIndicator Name="busyIndicatorSoftwareOwnership">
                            <StackPanel Name="panelSoftwareOwnership">
                                <StackPanel Orientation="Horizontal" Name="panelDivisionOfOwnership" Margin="10,0,0,10">
                                    <TextBlock Text="Division of Ownership" Width="180" VerticalAlignment="Center" />
                                    <Button Name="btnHelpDivisonOfOwnership" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                    <ComboBox Name="boxDivisonOfOwnership" Width="220" SelectionChanged="boxDivisonOfOwnership_SelectionChanged">
                                        <ComboBox.ItemTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding Name}" />
                                            </DataTemplate>
                                        </ComboBox.ItemTemplate>
                                    </ComboBox>
                                </StackPanel>
                                <StackPanel Orientation="Horizontal" Name="panelDepartmentOfOwnership" Margin="10,0,0,10">
                                    <TextBlock Text="Department of Ownership" Width="180" VerticalAlignment="Center" />
                                    <Button Name="btnHelpDepartmentOfOwnership" Content="?" Height="20" Margin="0,0,20,0" VerticalAlignment="Center" />
                                    <ComboBox Name="boxDepartmentOfOwnership" Width="220" ItemsSource="{Binding SelectedItem.Departments, ElementName=boxDivisonOfOwnership}">
                                        <ComboBox.ItemTemplate>
                                            <DataTemplate>
                                                <TextBlock Text="{Binding name}" />
                                            </DataTemplate>
                                        </ComboBox.ItemTemplate>
                                    </ComboBox>
                                </StackPanel>
                                <Button Name="btnSaveLicensingData" Width="120" Content="Save Licensing Data" HorizontalAlignment="Right" Margin="10" Click="btnSaveLicensingData_Click" />
                            </StackPanel>
                        </controlsToolkit:BusyIndicator>
                        <controlsToolkit:BusyIndicator Name="busyIndicatorUsersGrid">
                            <StackPanel Name="panelUsersGrids" Margin="10">
                                <StackPanel>
                                    <TextBlock Name="blockDataGridSoftwareUsersTitle" Text="Users" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" />
                                    <sdk:DataGrid AutoGenerateColumns="False" Name="dataGridSoftwareUsers" MaxHeight="400">
                                        <sdk:DataGrid.Columns>
                                            <sdk:DataGridTextColumn Binding="{Binding friendlyUserName}" Header="User Name" IsReadOnly="True" Width="2*" />
                                            <sdk:DataGridTextColumn Binding="{Binding ADSite}" Header="AD Site" IsReadOnly="True" Width="1*" />
                                            <sdk:DataGridTemplateColumn>
                                                <sdk:DataGridTemplateColumn.CellEditingTemplate>
                                                    <DataTemplate>
                                                        <CheckBox IsThreeState="False" IsChecked="{Binding include, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                                    </DataTemplate>
                                                </sdk:DataGridTemplateColumn.CellEditingTemplate>
                                            </sdk:DataGridTemplateColumn>
                                        </sdk:DataGrid.Columns>
                                    </sdk:DataGrid>
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                        <Button Name="btnSelectAllCurrentVersion" Content="Select All" Margin="5" Click="btnSelectAllCurrentVersion_Click" />
                                        <Button Name="btnUnSelectAllCurrentVersion" Content="Unselect All" Margin="5" Click="btnUnSelectAllCurrentVersion_Click" />
                                        <Button Name="btnCurrVersionRemoveSelected" Content="Removed Selected" Margin="5" Click="btnCurrVersionRemoveSelected_Click" />
                                    </StackPanel>
                                </StackPanel>
                                <StackPanel Name="panelRemovedUserGrid" Visibility="Collapsed">
                                    <TextBlock Name="blockDataGridRemovedSoftwareUsersTitle" Text="Removed Users" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" />
                                    <sdk:DataGrid AutoGenerateColumns="False" Name="dataGridSoftwareRemovedUsers" MaxHeight="400">
                                        <sdk:DataGrid.Columns>
                                            <sdk:DataGridTextColumn Binding="{Binding friendlyUserName}" Header="User Name" IsReadOnly="True" Width="2*" />
                                            <sdk:DataGridTextColumn Binding="{Binding ADSite}" Header="AD Site" IsReadOnly="True" Width="1*" />
                                            <sdk:DataGridTemplateColumn>
                                                <sdk:DataGridTemplateColumn.CellEditingTemplate>
                                                    <DataTemplate>
                                                        <CheckBox IsThreeState="False" IsChecked="{Binding include, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                                    </DataTemplate>
                                                </sdk:DataGridTemplateColumn.CellEditingTemplate>
                                            </sdk:DataGridTemplateColumn>
                                        </sdk:DataGrid.Columns>
                                    </sdk:DataGrid>
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                        <Button Name="btnSelectAllCurrentVersionRemoved" Content="Select All" Margin="5" Click="btnSelectAllCurrentVersionRemoved_Click" />
                                        <Button Name="btnUnSelectAllCurrentVersionRemoved" Content="Unselect All" Margin="5" Click="btnUnSelectAllCurrentVersionRemoved_Click" />
                                        <Button Name="btnCurrVersionReAddSelected" Content="Re-Add Selected" Margin="5" Click="btnCurrVersionReAddSelected_Click" />
                                    </StackPanel>
                                </StackPanel>
                                <StackPanel>
                                    <TextBlock Name="blockDataGridPreviousVersion" Text="Users - Previous Versions" HorizontalAlignment="Center" FontSize="15" FontWeight="Bold" />
                                    <sdk:DataGrid AutoGenerateColumns="False" Name="dataGridSoftwarePreviousUsers" MaxHeight="400">
                                        <sdk:DataGrid.Columns>
                                            <sdk:DataGridTextColumn Binding="{Binding friendlyUserName}" Header="User Name" IsReadOnly="True" Width="2*" />
                                            <sdk:DataGridTextColumn Binding="{Binding ADSite}" Header="AD Site" IsReadOnly="True" Width="1*" />
                                            <sdk:DataGridTextColumn Binding="{Binding version}" Header="Version" IsReadOnly="True" Width="1*" />
                                            <sdk:DataGridTemplateColumn>
                                                <sdk:DataGridTemplateColumn.CellEditingTemplate>
                                                    <DataTemplate>
                                                        <CheckBox IsThreeState="False" IsChecked="{Binding include, Mode=TwoWay}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                                                    </DataTemplate>
                                                </sdk:DataGridTemplateColumn.CellEditingTemplate>
                                            </sdk:DataGridTemplateColumn>
                                        </sdk:DataGrid.Columns>
                                    </sdk:DataGrid>
                                    <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                                        <Button Name="btnSelectAllPreviousVersion" Content="Select All" Margin="5" Click="btnSelectAllPreviousVersion_Click" />
                                        <Button Name="btnUnSelectAllPreviousVersion" Content="Unselect All" Margin="5" Click="btnUnSelectAllPreviousVersion_Click" />
                                        <Button Name="btnPreviousVersionAddSelected" Content="Add Selected to New Version" Margin="5" Click="btnPreviousVersionAddSelected_Click" />
                                    </StackPanel>
                                </StackPanel>
                            </StackPanel>
                        </controlsToolkit:BusyIndicator>
                    </StackPanel>
                </StackPanel>
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                    <Button HorizontalAlignment="Right" Name="btnRejectRequest" Content="Reject Request" Margin="0,0,10,0" Click="btnRejectRequest_Click"/>
                    <Button HorizontalAlignment="Right" Name="btnSaveChanges" Content="Save Changes" Margin="0,0,10,0" Click="btnSaveChanges_Click"/>
                    <Button HorizontalAlignment="Right" Name="btnPendingRequest" Content="Place in Pending" Margin="0,0,10,0" Click="btnPendingRequest_Click" />
                    <Button HorizontalAlignment="Right" Name="btnApproveRequest" Content="Approve Request" Margin="0,0,10,0" Click="btnApproveRequest_Click" />
                </StackPanel>
            </StackPanel>
        </controlsToolkit:BusyIndicator>
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
    </Grid>
</navigation:Page>
